<?php


namespace app\model\exam;


use app\model\BaseModel;
use app\model\office\OfficeClass;
use app\model\office\OfficeUser;

class ExamStatus extends BaseModel
{
    /**
     * 模型名称
     * @var string
     */
    protected $table = 'free_exam_status';
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = '0000-00-00 00:00:00';

    public function OfficeClass()
    {
        return $this->hasOne(OfficeClass::class, 'id', 'class_id');
    }

    public function users(){
        return $this->hasOne(OfficeUser::class,'idcard','idcard');
    }

}